package com.lin.controller;

import com.lin.controller.req.AppReleaseReqMsg;
import com.lin.controller.res.AppReleaseResMsg;
import com.lin.service.apprelease.AppReleaseService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

@Api(tags = "APP更新")
@RestController
@RequestMapping("/unverify")
public class AppReleaseController {
    @Autowired
    private AppReleaseService appReleaseService;

    @RequestMapping("/appupdate")
    public AppReleaseResMsg appUpdate(@Valid @RequestBody AppReleaseReqMsg reqMsg) {
        return appReleaseService.appUpdate(reqMsg);
    }
}
